<?php
use app\models\Mall;
use yii\helpers\Url;

$web = Url::base();
$site_name = Mall::getCurrentInstitutionSiteName();
$institution_code = Mall::getCurrentInstitutionCode();
//单位
$integral_unit = Mall::getCurrentInstitutionIntegralUnit();
$this->title = $site_name.'->订单支付成功';
?>
<link rel="stylesheet" type="text/css" href="<?= $web ?>/css/mall/successful-operation.css"/>


<div class="successful">
    <div class="line"></div>
    <div class="hint">
        <img src="<?=$web?>/images/mall/successful-con.png"/>
        <p>操作已成功，谢谢您的使用！</p>
    </div>
    <p class="massage">
        <span class="order-num">订单号：<?=$orderInfo['code']?> </span>
        <?php
        $sum_pay_integral=$orderInfo['integral'];
        if($orderInfo['cash_total_fee']){
            $sum_pay_integral=$sum_pay_integral-$orderInfo['cash_integral'];
        }
        ?>
        <span class="integral">支付<?=$integral_unit?>：<?=intval($sum_pay_integral)?></span>
        <?php
            $pay_cash=0;
            if($orderInfo['cash_total_fee']){
                $pay_cash= $orderInfo['cash_total_fee'] / 100  ;
        ?>
                <span class="integral">支付现金：￥<?=$pay_cash?> </span>
        <?php
            }
        ?>
    </p>
    <div class="btn">
        <a href="order-detail?institution_code=<?= $institution_code ?>&orderCode=<?=$orderInfo['code']?>" class="btn1">查看详情</a>
        <a href="index?institution_code=<?= $institution_code ?>" class="btn2">继续购物</a>
    </div>
</div>


